@import "~choerodon-ui/lib/style/themes/default";

// 颜色
@box-shadow-style-default: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2),
  0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14),
  0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12);
@font-color: var(--text-color4);
@font-color-dark: var(--text-color);
@font-color-light: #e1e1e1;
@bg-color1: rgba(0, 0, 0, 0.26);

.c7n-system-setting {
  &-form {
    margin-bottom: 0.24rem;
    .c7n-pro-field-required::after {
      content: "" !important;
    }
    font-size: 0.14rem;
    h3 {
      font-size: 0.16rem;
    }
    .divider {
      border-bottom: 0.01rem solid var(--divider);
      width: 100%;
      height: 0.01rem;
      margin-bottom: 0.16rem;
    }
    tr {
      td {
        .c7n-pro-field-wrapper {
          padding: 0;
          padding-bottom: 0.05rem;
        }
        padding: 0;
        padding-bottom: 0.05rem;
        &:first-of-type {
          color: @font-color;
        }
        &:nth-of-type(2) {
          color: @font-color-dark;
        }
        &:nth-of-type(3) {
          color: @font-color;
        }
      }
    }
  }
}

.c7n-system-setting-formImg {
  width: 0.8rem !important;
  height: 0.8rem !important;
  border-radius: 50%;
  box-shadow: @box-shadow-style-default;
  padding: 0.08rem;
  &-wrapper {
    // position: absolute;
    background: #c5cbe8;
    text-transform: uppercase;
    user-select: none;
    width: 0.64rem;
    height: 0.64rem;
    border-radius: 50%;
    font-size: 0.4rem;
    line-height: 0.64rem;
    font-weight: 700;
    background-size: 100%;
    background-position: center;
    text-decoration: none;
    background-repeat: no-repeat;
    color: #3f51b5;
    text-align: center;
    &.default-favicon {
      background-image: url("assert/favicon.png");
    }
    &.default-logo {
      background-image: url("assert/choerodon_logo_picture.svg");
    }
  }
  img {
    width: 100%;
    border: 0.4rem;
    border-radius: 50%;
  }
}

.c7n-system-setting-avater {
  background-size: cover;
  width: 0.8rem;
  height: 0.8rem;
  display: block;
  margin: 0 auto;
  border-radius: 50px;
  &:hover {
    .c7n-system-setting-avater-mask {
      opacity: 1;
    }
  }
  &-container {
    height: 1rem;
  }
  &-mask {
    opacity: 0;
    transition: 0.2s;
    position: relative;
    padding: 0;
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    top: -0.8rem;
    background: rgba(0, 0, 0, 0.26);
    border-radius: 50%;
    color: @font-color-light;
    text-align: center;
    cursor: pointer;

    &:hover {
      background: @bg-color1;
    }

    &-icon {
      color: #fff;
      line-height: 0.8rem;

      i {
        font-size: 0.3rem;
      }
    }
  }
}

.c7n-system-setting-infoForm {
  .c7n-pro-input-suffix {
    height: 50px !important;
    border-left: 1px solid #d9e6f2 !important;
  }
  .c7n-pro-input-suffix-button .c7n-pro-input-intl.icon-language {
    color: #abbccf;
  }
  &-IntlField {
    tr:nth-child(2) {
      display: none;
    }
  }
  .c7n-pro-select-box {
    label {
      margin-right: 0.6rem;
    }
  }
  form {
    table {
      tbody {
        tr:first-child {
          td {
            label {
              display: none;
            }
            .c7n-pro-field-wrapper {
              height: 100px;
            }
          }
        }
      }
    }

    .@{c7n-pro-prefix}-input-number:not(textarea):not(:last-child) {
      padding-right: 0.5rem;
    }

    .@{c7n-pro-prefix}-input-number-inner-button {
      right: 0.01rem;
    }
    .@{c7n-pro-prefix}-input-number-suffix {
      right: 0.25rem;
    }
  }

  &-suffix {
    line-height: 0.2rem;
    color: rgba(0, 0, 0, 0.25);
  }

  &-label {
    color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    color: rgba(15, 19, 88, 0.65);
    .c7ncd-select-tips-icon {
      font-size: 0.18rem !important;
      margin-left: 0.02rem;
    }
  }
}
.c7ncd-func-form {
  .c7n-pro-field-label {
    text-align: left;
    color: @font-color;
    font-size: 14px;
  }
}
.c7n-page-tab-wrapper-info {
  .page-content {
    padding-left: 28px !important;
    .c7ncd-system-setting-loginIndex {
      padding-left: 0 !important;
    }
  }
}
